package com.bdqn.Service.Enquire.impl;

import com.bdqn.Service.Enquire.EnquireService;
import com.bdqn.entity.Enquire;
import com.bdqn.mapper.Enquire.EnquireMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EnquireImplService implements EnquireService {
    @Autowired
    EnquireMapper enquireMapper;
    @Override
    public boolean Insert(Enquire enquire) {
        return enquireMapper.Insert(enquire);
    }

    @Override
    public boolean UpdateIdMapping(int id, Enquire enquire) {
        return enquireMapper.UpdateIdMapping(id, enquire);
    }

    @Override
    public Enquire Select(Enquire enquire) {
        return enquireMapper.Select(enquire);
    }

    @Override
    public List<Enquire> findAll(Enquire enquire, Integer pageNum, Integer pageSize) {
        return enquireMapper.findAll(enquire,pageNum,pageSize);
    }

    @Override
    public int getCount() {
        return enquireMapper.getCount();
    }

    @Override
    public int deleteEnquire(Integer id) {
        return enquireMapper.deleteEnquire(id);
    }

    @Override
    public boolean updateEnquire(Enquire enquire) {
        return enquireMapper.updateEnquire(enquire);
    }

    @Override
    public List<Enquire> findMateSupByEnq(Integer id) {
        return enquireMapper.findMateSupByEnq(id);
    }

    @Override
    public Enquire findByNum(Enquire enquire) {
        return enquireMapper.findByNum(enquire);
    }

    @Override
    public boolean UpdateStatus1(Enquire enquire) {
        return enquireMapper.UpdateStatus1(enquire);
    }

}
